home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 95 / MOBICLIC 95.ISO / mac / MWB_DATA / TCH095 / TCH095_02 / tch095_02.swf / scripts / frame_6 / PlaceObject2_135_128 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2007-06-28  |  1KB  |  44 lines

  1. onClipEvent(enterFrame){
  2.    if(pSonDebutCharge === 0)
  3.    {
  4.       if(mySonCharge <= _root.gListeSons.length - 1)
  5.       {
  6.          var mon_sound = new Sound();
  7.          if(mySonCharge === 0)
  8.          {
  9.             if(myLangue === _root.gLangue)
  10.             {
  11.                mon_sound.loadSound(myCheminSon + _root.gListeSons[mySonCharge] + ".mp3",true);
  12.                _root.gCommentOn = 1;
  13.                _root.dernierComment = mon_sound;
  14.                _root.ST.afficheText(_root.gListeSons[0]);
  15.             }
  16.             else
  17.             {
  18.                mon_sound.loadSound(myCheminSon + _root.gListeSons[mySonCharge] + ".mp3",false);
  19.             }
  20.             _root[myLangue + "_" + "my_comment_" + mySonCharge] = mon_sound;
  21.          }
  22.          else
  23.          {
  24.             mon_sound.loadSound(myCheminSon + _root.gListeSons[mySonCharge] + ".mp3",false);
  25.          }
  26.          pSonDebutCharge = 1;
  27.          _root.infos["testCharge" + myLangue].text = String(mySonCharge) + "/" + String(_root.gListeSons.length - 1);
  28.       }
  29.    }
  30.    else
  31.    {
  32.       if(mon_sound.getBytesTotal() != 0)
  33.       {
  34.          _root.infos["testpCent" + myLangue].text = 100 * (mon_sound.getBytesLoaded() / mon_sound.getBytesTotal());
  35.       }
  36.       if(mon_sound.getBytesLoaded() == mon_sound.getBytesTotal())
  37.       {
  38.          _root[myLangue + "_" + "my_comment_" + mySonCharge] = mon_sound;
  39.          mySonCharge += 1;
  40.          pSonDebutCharge = 0;
  41.       }
  42.    }
  43. }
  44.